<template>
	<div class="module-box">
		<div class="module-title">{{title}}</div>
		<img class="angle tl" src="../../assets/images/icons/tl.png" />
		<img class="angle tr" src="../../assets/images/icons/tr.png" />
		<img class="angle br" src="../../assets/images/icons/br.png" />
		<img class="angle bl" src="../../assets/images/icons/bl.png" />
		<div class="module-content"><slot></slot></div>
	</div>
</template>

<script>
export default{
	props:{
		title:{
			type: String,
			default: 'module-title'
		}
	}
}
</script>

<style lang="less" scoped>
.module-box{
	position: relative;
	margin-top: 2.6vh;
	padding: 2vh 1vh 1vh 1vh;
	width: 100%;
	min-height: 10vh;
	background: rgba(0, 0, 0, 0.16);
	background-size: 100% 100%;
	border: 1px solid #275869;
	border-radius: 2px;
	white-space: nowrap;
	color: #fff;
	box-sizing: border-box;
	background-color: rgba(0, 0, 0, .28);
	.module-title{
		position: absolute;
		top: 0;
		left: 50%;
		transform: translate(-50%, -50%);
		padding: .3vh 3vw;
		text-align: center;
		line-height: 2.6vh;
		height: 2.6vh;
		font-size: 2vh;
		color: #fff;
		text-shadow: 0px 0px 2px #00fff0,0px 0px 3px #00fff0;
		background: url(../../assets/images/bg/moudle-title.png) no-repeat;
		background-size: 100% 100%;
	}
	.angle{
		position: absolute;
		width: 3.5vh;
		height: 3.5vh;
		z-index: 0;
		&.tl{
			top: 0;
			left: 0;
		}
		&.tr{
			top: 0;
			right: 0;
		}
		&.bl{
			bottom: 0;
			left: 0;
		}
		&.br{
			bottom: 0;
			right: 0;
		}
	}
	.module-content{
		position: relative;
		z-index: 5;
	}
}
</style>
